let express = require("express")
let app = express()
app.use(express.static("public"))

app.get("/test_get", (req, resp) => {
    console.log(req.query)
    var {callback} = req.query
    var arr = [{name: "kobe", age: 18}, {name: "peiqi", age: 3}]
    resp.send(`${callback}(${JSON.stringify(arr)})`)
})

app.listen(3000, (err) => {
    if(!err){
        console.log("服务器启动成功了")
    }else{
        console.log(err)
    }
})